package com.foo;

import java.util.ArrayList;
import java.util.List;

public class App {

	public static void main(String[] args){
		
		Box b1 = new MyBox(1,2,0,0);
		
		Box b2 = new BoxBuilder().setLength(2).setWidth(5).create();
		
		Circle c1 = new Circle(3, 0, 0);
		Circle c2 = new Circle(3, 0, 0);
		Triangle t1 = new Triangle(1,2, 0, 0);
		
		System.out.println( b1.toString());
		System.out.println( c1.toString());
		System.out.println( t1.toString());
		
		System.out.println( b1.getArea());
		System.out.println( c1.getArea());
		System.out.println( t1.getArea());
		
		
		Canvas c = new Canvas();
		c.addGraphic(b1);
		c.addGraphic(c1);
		c.addGraphic(t1);
		c.addGraphic(b1);
		
		c.draw();
		
//		List<Graphic> graphics = new ArrayList<Graphic>();
//		graphics.add(b1);
//		graphics.add(c1);
//		graphics.add(t1);
//		graphics.add(b1);
//
//		Canvas canvas2 = new Canvas( graphics);
		
		
//		canvas2.draw();
		
		System.out.println( c1.equals(c1));
		System.out.println( c1.equals(c2));
		
		System.out.println( c1.equals(b1));
		
		
	}
}
